package com.xyx.service;

import com.xyx.pojo.Member;
import com.xyx.pojo.SysUser;

import java.util.List;

public interface IMemberService {
    /**
     * 获取所有用户
     * @param name
     * @return
     */
    List<Member> getAllMembers(String name,Integer pageNum, Integer pageSize);

    /**
     * 根据id查询
     */
    Member getMemberById(Integer id);
    /*
     * 新增用户
     * */
    int addMember(Member member);
    /*
     * 修改用户
     * */
    int editMember(Member member);
    /*
     * 根据id删除用户
     * */
    int deleteMemberById(Integer id);
    /*
     * 批量删除
     * */
    int deleteAllMember( List<String> idms);
    /*
     *根据用户名查询用户
     * */
    Member getMemberByName(String name );


}
